<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- <%@include file="../../common/taglib/taglib.jsp"%> --%>

<div class="pageContent">

	<form id="form" method="post" action="${baseURL }/agentMerchant/add" cssClass="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);" method="post">
		<div class="pageFormContent" layoutH="56">
			<input type="hidden" name="navTabId" value="merchantList" />
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<input type="hidden" name="forwardUrl" value="" />
			
			<!-- 修改 -->
			<input type="hidden" name="agentNo" value="${agentNo}" />
			
			<!-- 设置商户的基本信息  start -->
			<fieldset>
				<legend>基本信息</legend>
				<dl>
					<dt>企业简称：</dt>
					<dd>
						<input type="text" name="userName" class="required" size="25" maxlength="128" />
					</dd>
				</dl>
				<dl>
					<dt>企业全称：</dt>
					<dd>
						<input type="text" name="fullName" class="required" size="25" maxlength="128" />
					</dd>
				</dl>
				<dl>
					<dt>企业地址：</dt>
					<dd>
						<input type="text" name="address" class="required" size="25" maxlength="128" />
					</dd>
				</dl>
				<dl>
					<dt>合同编号：</dt>
					<dd>
						<input type="text" name="contractNo" size="25" maxlength="128"/>
					</dd>
				</dl>
				<dl>
					<dt>法人代表姓名：</dt>
					<dd>
						<input type="text" name="legalPerson" class="required" size="25" maxlength="128" />
					</dd>
				</dl>
				<dl>
					<dt>法人身份证号：</dt>
					<dd>
						<input type="text" name="frCardNo" class="required " size="25" minlength="15" maxlength="18" />
					</dd>
				</dl>
				<dl>
					<dt>营业执照号：</dt>
					<dd>
						<input type="text" name="licenseNo" class="required " size="25" minlength="11" maxlength="30" />
					</dd>
				</dl>
				<dl>
					<dt>业务联系人：</dt>
					<dd>
						<input type="text" name="busiContactName" class="required" size="25" maxlength="128" />
					</dd>
				</dl>
				<dl>
					<dt>业务联系人手机号码：</dt>
					<dd>
						<input type="text" name="busiContactMobileNo" class="required phone" size="25" maxlength="11" />
					</dd>
				</dl>
				
				<!--------------------修改部分-------------------->
				<dl>
					<dt>业务联系人邮箱：</dt>
					<dd>
						<input type="text" name="busiContactEmail" class="required email" size="25" maxlength="30" />
					</dd>
				</dl>
				<dl>
					<dt>企业网站：</dt>
					<dd>
						<input type="text" name="userWeb" class="required" size="25" maxlength="30" />
					</dd>
				</dl>
				<dl>
					<dt>ICP备案号：</dt>
					<dd>
						<input type="text" name="icpNo" class="required" size="25" maxlength="30" />
					</dd>
				</dl>
				<!--------------------修改部分-------------------->
				
				<dl>
					<dt>登录账号(手机号)：</dt>
					<dd>
						<input type="text" name="mobile" class="required phone" size="25" maxlength="11" />
					</dd>
				</dl>
				<dl>
					<dt>登录密码：</dt>
					<dd>
						<input type="text" name="password" size="25" maxlength="128" value="123456" />
					</dd>
				</dl>
				<!-- 修改部分zj -->
				<dl>
					<dt>支付密码：</dt>
					<dd>
						<input type="text" name="payPwd" size="25" maxlength="128" value="123456" />
					</dd>
				</dl>
				<!-- 修改部分zj -->
			</fieldset>
			<fieldset>
				<legend>出款配置</legend>
				<dl>
					<dt>开户银行：</dt>
					<dd>
						<input type="text" name="bank.bankName" size="25" maxlength="128" class="required" readonly="readonly" />
						<a class="btnLook" href="${baseURL}/agentMerchant/bankLookupList" lookupGroup="bank">搜索</a>
						<input type="hidden" name="bank.bankChannelNo" value="${rpUserBankAccount.bankChannelNo }" />
					</dd>
				</dl>
				<dl>
					<dt>银行账户类型：</dt>
					<dd>
						<select name="bankAccountType" class="required">
							<c:forEach var="item" items="${BankAccountTypeEnums}">
								<option value="${item.name }" <c:if test="${item.name eq 'PRIVATE_DEBIT_ACCOUNT'}">selected="selected"</c:if>>${item.desc }</option>
							</c:forEach>
						</select>
					</dd>
				</dl>
				<dl>
					<dt>银行开户名：</dt>
					<dd>
						<input type="text" name="bankAccountName" class="required" size="25" maxlength="80" />
					</dd>
				</dl>
				<dl>
					<dt>银行账号：</dt>
					<dd>
						<input type="text" name="bankAccountNo" class="required digits" size="25" minlength="8" maxlength="19" />
					</dd>
				</dl>
				<dl>
					<dt>证件类型：</dt>
					<dd>
						<select name="cardType" class="required">
							<c:forEach var="item" items="${CardTypeEnums}">
								<option value="${item.name }">${item.desc }</option>
							</c:forEach>
						</select>
					</dd>
				</dl>
				<dl>
					<dt>证件号码：</dt>
					<dd>
						<input type="text" name="cardNo" class="required" size="25" minlength="15" maxlength="18" />
					</dd>
				</dl>
				<dl>
					<dt>手机号：</dt>
					<dd>
						<input type="text" name="mobileNo" class="required phone" size="25" maxlength="11" />
					</dd>
				</dl>
				<dl>
					<dt>开户行详细地址：</dt>
					<dd>
						<input type="text" name="street" class="required" size="25" maxlength="128" />
					</dd>
				</dl>

				<dl>
					<dt>出款限额百分比：</dt>
					<dd>
						<input type="text" name="settLimit" class="required number" size="25" maxlength="11" value="100" />
						&nbsp;%
					</dd>
				</dl>
			</fieldset>
			<fieldset>
				<legend style="color: red">商户结算方式,选择后不可修改,保存前请详细确认</legend>
				<dl>
					<dt>商户结算方式：</dt>

					<dd>
						<input type="radio" name="settMode" value="0" />
						T+0
						<input type="radio" name="settMode" value="1" checked="checked" />
						T+1
					</dd>
				</dl>
			</fieldset>
			<!-- 
			
			<fieldset>
				<legend>销售配置</legend>
				<dl>
					<dt>销售人员：</dt>
			-->		
					
					
					<!-- 					<dd> -->
					<!-- 						<select name="sales" id="sales"> -->
					<!-- 							<option value="">请选择</option> -->
					<%-- 							<c:forEach var="item" items="${salesList}"> --%>
					<%-- 								<option value="${item.salesNo}$${item.salesName}">${item.salesName}</option> --%>
					<%-- 							</c:forEach> --%>
					<!-- 						</select> -->
					<!-- 					</dd> -->
			<!-- 
					<dd>
						<input type="text" name="sales.salesName" size="25" maxlength="128" class="required" readonly="readonly" />
						<a class="btnLook" href=" ${baseURL}/agentMerchant/salesLookupList?agentNo=${agentNo}" lookupGroup="sales">搜索</a>
						<input type="hidden" name="sales.salesNo" value="" />
					</dd>
				</dl>
			</fieldset>
			-->
			
		</div>

		<div class="formBar">
			<ul style="float: left;">
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>

